package com.www.conversionspring.formatters;

import com.www.conversionspring.dao.DictonaryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.Formatter;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.util.StringUtils;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Dictionary;
import java.util.Locale;

/**
 * <p>
 * </p>
 *
 * @author Zed.Yun
 * @Title: TranslaterFormatter
 * @ProjectName conversion-spring
 * @date 2019/3/18 17:47
 */
public class TranslaterFormatter implements Formatter<String> {

//    @Autowired
//    private DictonaryMapper dictonaryMapper;


    public TranslaterFormatter() {

    }

    @Override
    public String parse(String text, Locale locale) throws ParseException {
        if(text == null || text == ""){
            return "";
        }
        return "aaaaaa";
    }

    @Override
    public String print(String text, Locale locale) {
        if(text == null || text == ""){
            return "";
        }
        return "aaaaaa";
    }



}
